package com.hospital.hospitalserver.entity.Vo;

import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 患者档案表实体类
 * 用于响应加载数据
 * */
@Data
public class PatientMaster {
    private Integer patient_id;
    private String patient_no;
    private String patient_name;
    private String record_no;

    private String id_number;
    private String gender;
    private Integer age;
    private LocalDate birth_date;
    private String phone_number;
    private String emergency_contact;
    private String emergency_phone;
    private String blood_type;
    private String allergy_history; //
    private String chronic_diseases; //
    private String family_history;
    private LocalDateTime create_time;
    private LocalDateTime update_time;

    //就诊统计信息
    private Integer total_visits; //就诊次数统计
    private LocalDateTime latest_visit_time; //最后就诊时间
    private String latest_visit_status; //最后诊断状态

    //最近一次就诊信息
    private String latest_doctor; //医生姓名
    private String latest_department; //科室名称
    private String visit_status; //就诊状态
    private String latest_diagnosis; //最终诊断信息
    private LocalDateTime latest_diagnosis_time; //最终诊断时间

    //病历数量（诊断记录数）
    private Integer record_count;
}
